package com.xuhai.blog.admin.mapper;

import com.xuhai.blog.admin.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 文章分类表 Mapper 接口
 * </p>
 *
 * @author 机蜂
 * @since 2022-02-08
 */
@Mapper
public interface CategoryMapper extends BaseMapper<CategoryEntity> {
    List<CategoryEntity> getCategoryListByArticleId(Integer articleId);
    List<CategoryEntity> getCategoryPieData();
}
